// 菜单接口
import axios from "@/request/axios";

// 新增菜单
export function actiontreeAdd(params: any) {
  return axios({
    url: "/system/menu/add",
    method: "post",
    data: params,
  });
}

// 删除菜单
export function actiontreeDel(ids: any) {
  return axios({
    url: "/system/menu/del",
    method: "post",
    data: ids,
  });
}

// 修改菜单
export function actiontreeEdit(params: any) {
  return axios({
    url: "/system/menu/edit",
    method: "post",
    data: params,
  });
}

// 菜单详情
export function getActionTreeById(id: any) {
  return axios({
    url: "/system/menu/detail",
    method: "post",
    data: {id}
  });
}


// 获取菜单树
export function getActiontreeTree(data) {
  return axios({
    url: "/system/menu/getMenuTree",
    method: "post",
    data:data
  });
}

// 菜单列表
export function actiontreeQueryMenu(params: any) {
  return axios({
    url: "/system/menu/query",
    method: "post",
    data: params
  });
}